<template>
  <div class="good-list-item">
    <img
      v-if="data.isHotSale === 1"
      class="sanjiao"
      src="../../assets/images/home/hot-j.png"
      alt=""
    />
    <img
      v-if="data.isLatest === 1"
      class="sanjiao"
      src="../../assets/images/home/new-j.png"
      alt=""
    />
    <div>
      <img :src="data.coverImg" alt="" />
      <div class="name">{{ data.name }}</div>
      <div class="coin">
        {{ data.coin }}<img src="../../assets/images/home/monad.png" alt="" />
        <!-- ../../assets/images/home/monad.png -->
      </div>
      <div class="btn">立即兑换</div>
    </div>
  </div>
</template>
 
<script>
export default {
  props: ["data"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.good-list-item {
  cursor: pointer;
  position: relative;
  font-family: SourceHanSansSC;
  width: 285px;
  padding-bottom: 32px;
  /* height: 410px; */
  text-align: center;
  background-color: #fff;
  /* .img {
      width: 285px;
      height: 250px;
      overflow: hidden;
  } */
  .sanjiao {
    position: absolute;
    top: 0;
    left: 0;
  }
  .name {
    margin-top: 22px;
    font-size: 18px;
    line-height: 18px;
    font-weight: 300;
    color: #333333;
  }
  .coin {
    font-size: 18px;
    font-weight: bold;
    color: #ff5e0f;
    line-height: 18px;
    margin-top: 16px;
    margin-bottom: 20px;
    img {
      width: 20px;
      height: 20px;
      vertical-align: middle;
      margin-left: 10px;
    }
  }
  .btn {
    width: 100px;
    height: 36px;
    border: 1px solid #0a328e;
    display: inline-block;
    line-height: 36px;
    text-align: center;
  }
}
</style>